package com.lrkj.payfee.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 生成仪费用对象 tb_generate
 *
 * @author yajun_ren
 * @date 2021-07-30
 */
public class Generate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生成id */
    private String generateId;

    /** 房间id */
    @Excel(name = "房间id")
    private String roomId;

    /** 客户id */
    @Excel(name = "客户id")
    private String ownerId;

    /** 仪表种类id */
    @Excel(name = "仪表种类id")
    private String kindId;

    /** 房间仪表id */
    @Excel(name = "房间仪表id")
    private String rometerId;

    /** 抄房间仪表id */
    @Excel(name = "抄房间仪表id")
    private String copyId;

    /** 楼栋id */
    @Excel(name = "楼栋id")
    private String floorId;

    /** 小区id */
    @Excel(name = "小区id")
    private String communityId;

    /** 上次读数 */
    @Excel(name = "上次读数")
    private BigDecimal lastReading;

    /** 本次读数 */
    @Excel(name = "本次读数")
    private BigDecimal theReading;

    /** 读数日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "读数日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readingTime;

    /** 实际行读 */
    @Excel(name = "实际行读")
    private BigDecimal practicalLine;

    /** 调整行度 */
    @Excel(name = "调整行度")
    private BigDecimal adjustLine;

    /** 计费行度 */
    @Excel(name = "计费行度")
    private BigDecimal chargedLine;

    /** 组织机构id */
    @Excel(name = "组织机构id")
    private String deptId;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    /** 生成状态(0:未生成,1:已生成) */
    @Excel(name = "生成状态(0:未生成,1:已生成)")
    private String generateState;

    //房间名
    private String roomName;

    //客户名
    private String ownerName;

    //仪表种类代码
    private String kindCode;

    //仪表种类名称
    private String kindName;

    //房间仪表代码
    private String rometerCode;

    //楼栋名称
    private String floorName;

    //小区名称
    private String communityName;

    //所属机构
    private String deptName;

    //上次读数时间
    private Date lastTime;

    public String getGenerateState() {
        return generateState;
    }

    public void setGenerateState(String generateState) {
        this.generateState = generateState;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getKindCode() {
        return kindCode;
    }

    public void setKindCode(String kindCode) {
        this.kindCode = kindCode;
    }

    public String getKindName() {
        return kindName;
    }

    public void setKindName(String kindName) {
        this.kindName = kindName;
    }

    public String getRometerCode() {
        return rometerCode;
    }

    public void setRometerCode(String rometerCode) {
        this.rometerCode = rometerCode;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setGenerateId(String generateId)
    {
        this.generateId = generateId;
    }

    public String getGenerateId()
    {
        return generateId;
    }
    public void setRoomId(String roomId)
    {
        this.roomId = roomId;
    }

    public String getRoomId()
    {
        return roomId;
    }
    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public String getOwnerId()
    {
        return ownerId;
    }
    public void setKindId(String kindId)
    {
        this.kindId = kindId;
    }

    public String getKindId()
    {
        return kindId;
    }
    public void setRometerId(String rometerId)
    {
        this.rometerId = rometerId;
    }

    public String getRometerId()
    {
        return rometerId;
    }
    public void setCopyId(String copyId)
    {
        this.copyId = copyId;
    }

    public String getCopyId()
    {
        return copyId;
    }
    public void setFloorId(String floorId)
    {
        this.floorId = floorId;
    }

    public String getFloorId()
    {
        return floorId;
    }
    public void setCommunityId(String communityId)
    {
        this.communityId = communityId;
    }

    public String getCommunityId()
    {
        return communityId;
    }
    public void setLastReading(BigDecimal lastReading)
    {
        this.lastReading = lastReading;
    }

    public BigDecimal getLastReading()
    {
        return lastReading;
    }
    public void setTheReading(BigDecimal theReading)
    {
        this.theReading = theReading;
    }

    public BigDecimal getTheReading()
    {
        return theReading;
    }
    public void setReadingTime(Date readingTime)
    {
        this.readingTime = readingTime;
    }

    public Date getReadingTime()
    {
        return readingTime;
    }
    public void setPracticalLine(BigDecimal practicalLine)
    {
        this.practicalLine = practicalLine;
    }

    public BigDecimal getPracticalLine()
    {
        return practicalLine;
    }
    public void setAdjustLine(BigDecimal adjustLine)
    {
        this.adjustLine = adjustLine;
    }

    public BigDecimal getAdjustLine()
    {
        return adjustLine;
    }
    public void setChargedLine(BigDecimal chargedLine)
    {
        this.chargedLine = chargedLine;
    }

    public BigDecimal getChargedLine()
    {
        return chargedLine;
    }
    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }

    public String getDeptId()
    {
        return deptId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("generateId", getGenerateId())
            .append("roomId", getRoomId())
            .append("ownerId", getOwnerId())
            .append("kindId", getKindId())
            .append("rometerId", getRometerId())
            .append("copyId", getCopyId())
            .append("floorId", getFloorId())
            .append("communityId", getCommunityId())
            .append("lastReading", getLastReading())
            .append("theReading", getTheReading())
            .append("readingTime", getReadingTime())
            .append("practicalLine", getPracticalLine())
            .append("adjustLine", getAdjustLine())
            .append("chargedLine", getChargedLine())
            .append("deptId", getDeptId())
            .append("ancestors", getAncestors())
            .toString();
    }
}
